<?php  # Script -- isimg3.php

/* Author @ Huoty
 *   Date @ 2015-11-25 16:53:04
 *  Brief @ 
 */

$mimetype = exif_imagetype("1.jpg");
if ($mimetype == IMAGETYPE_GIF || $mimetype == IMAGETYPE_JPEG || $mimetype == IMAGETYPE_PNG || $mimetype == IMAGETYPE_BMP)
{
    echo "是图片";
}

?>
